package com.xyht.medicine_management_system.modules.order.constant;

import java.util.Arrays;
import java.util.List;

public class OrderConstant {
    // 订单状态: 0.订单取消 1.待支付 2.待发货 3.待收货 4.已收货
    public static final int ORDER_STATUS_ORDER_CANCELLED = 0; // 订单取消
    public static final int ORDER_STATUS_TO_BE_PAID = 1; // 待支付
    public static final int ORDER_STATUS_TO_BE_DELIVERED = 2; // 待发货
    public static final int ORDER_STATUS_TO_BE_RECEIVED = 3; // 待收货
    public static final int ORDER_STATUS_ALREADY_RECEIVED = 4; // 已收货

    // 订单是否有售后: 0.否 1.是
    public static final boolean ORDER_IS_REFUND_NO = false; // 否
    public static final boolean ORDER_IS_REFUND_YES = true; // 是

    // 订单是否结束: 0.否 1.是
    public static final boolean ORDER_IS_CLOSE_NO = false; // 否
    public static final boolean ORDER_IS_CLOSE_YES = true; // 是

    // 订单类型: 0.普通订单
    public static final int ORDER_TYPE_COMMON = 0; // 普通订单

    // 订单级别: 0.普通订单
    public static final int ORDER_LEVEL_COMMON = 0; // 普通订单

    // 订单支付方式: 微信支付
    public static final String ORDER_PAYMENT_METHOD_SYSTEM_SKIP = "SystemSkipPay"; // 系统跳过支付(金额为0)
    public static final String ORDER_PAYMENT_METHOD_CONSUMPTION_POINT = "PointExchange"; // 积分兑换
    public static final String ORDER_PAYMENT_METHOD_WXPAY = "WxPay"; // 微信支付
    public static final String ORDER_PAYMENT_METHOD_ALIPAY = "AliPay"; // 支付宝支付
    public static final List<String> PAYMENT_METHOD_LIST = Arrays.asList(ORDER_PAYMENT_METHOD_WXPAY, ORDER_PAYMENT_METHOD_ALIPAY);

}
